.modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .chat-window {
        background-color: #fefefe;
        margin: 2% auto;
        padding: 10px;
        border: 1px solid #888;
        width: 80%;
        max-width: 1000px;
        height: 90%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
    }

    .chat-header {
        font-weight: bold;
        font-size: 18px;
        text-align: center;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
    }

    .chat-content {
        flex-grow: 1;
        overflow-y: auto;
        padding: 10px;
        margin-top: 10px;
    }

    .chat-block {
        margin: 10px 0;
        padding: 10px;
        border-radius: 5px;
        background-color: #e6e6e6;
        cursor: pointer;
        border: 1px solid transparent;
        overflow: auto;
        transition: all 0.3s ease;
    }

    .chat-block.selected {
        border: 2px solid #0056b3;
        background-color: #f0f8ff;
        box-shadow: 0 0 10px rgba(0, 86, 179, 0.7);
    }

    .chat-block table {
    width: auto; /* 自适应宽度，避免过多的空白 */
    border-collapse: collapse; /* 合并边框，以减少空隙 */
    margin: 0 auto;
    }

    .chat-block th, .chat-block td {
        border: 1px solid #444; /* 边框颜色 */
        padding: 2px 5px; /* 减少内边距，使内容更紧凑 */
        font-size: 12px; /* 调整字体大小 */
        text-align: left; /* 左对齐文本 */
        font-family: monospace; /* 使用等宽字体，模拟终端效果 */
    }

    .chat-block thead th {
        background-color: #f2f2f2; /* 表头背景色 */
    }


    /* 输入块的 CSS */
    .input-block {
        background-color: #e6e6e6;
    }

    /* 响应块的 CSS */
    .response-block {
        background-color: #d9edf7;
        white-space: pre-wrap;
    }

    .loading-spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin: 10px auto;
        display: none;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    #floatingPanel {
        position: fixed;
        right: 20px;
        top: 75%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.9);
        border: 1px solid #ccc;
        padding: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        z-index: 1000;
    }

    #floatingPanel .button {
        display: block;
        margin-bottom: 10px;
        text-align: center;
        padding: 10px;
        color: #fff;
        background-color: #007bff;
        text-decoration: none;
        border-radius: 4px;
    }

    #floatingPanel .button:hover {
        background-color: #0056b3;
    }

    #addChatBlockButton {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #007bff;
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 24px;
        line-height: 36px;
        text-align: center;
        margin: 10px auto;
        display: block;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease;
    }

    #addChatBlockButton:hover {
        background-color: #0056b3;
    }

    .button-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .button-container button {
        padding: 10px 20px;
        font-size: 16px;
        color: #fff;
        background-color: #28a745;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .button-container button:hover {
        background-color: #218838;
    }

    .workflow-button-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .workflow-button-container button {
        padding: 10px 20px;
        font-size: 16px;
        color: #fff;
        background-color: #f39c12; /* 橙色背景 */
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .workflow-button-container button:hover {
        background-color: #e67e22; /* 深橙色 */
    }